#pragma once
#include "BaseShape.h"
#ifndef _RECTANGLE_
#define _RECTANGLE_

#define NUM_OF_ANGLE 4

class CRectangle : public BaseShape
{
public:
	
public:
	CRectangle(void);
	CRectangle(CPoint, CPoint, COLORREF);
	BOOL Draw(CDC *cDC);
	~CRectangle(void);
	CRectangle (CPoint m_pBegin, CPoint m_pEnd, COLORREF m_clrBack, COLORREF m_cPenColor, BASESHAPE__T m_nShapeType);
	void Serialize ( CArchive &ar);
private:
	//thiet lap toa do cho cac dinh trong hinh chu nhat
	void setCoordinate();
};

#endif // !_RECTANGLE_